package model

import "gorm.io/gorm"

type Social struct {
	gorm.Model
	Title   string `gorm:"type:varchar(50)" json:"Title"`
	Content string `gorm:"type:varchar(50)" json:"Content"`
	Author  string `gorm:"type:varchar(50)" json:"Author"`
}
type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(50)" json:"Username"`
	Password string `gorm:"type:varchar(50)" json:"Password"`
}

//// UserRole 用户和角色的关系
//type UserRole struct {
//	gorm.Model
//	Uid int `gorm:"type:int"`
//	Rid int `gorm:"type:int"`
//}
//
//// Role角色表
//type Role struct {
//	gorm.Model
//	RoleName string `gorm:"type:varchar(50)"`
//}
//
//// RoleNode角色和权限的关系
//type RoleNode struct {
//	gorm.Model
//	Rid int `form:"type:int"`
//	Nid int `gorm:"type:int"`
//}
//
//// Node权限表
//type Node struct {
//	gorm.Model
//	NodeName string `gorm:"type:varchar(50)"`
//}
